#-*- coding: utf-8 -*-
#
# Author:: Jonny
# Date:: 2018/12/5
import os


class app:
    def __init__(self):
        PROJECT_PATH = os.path.dirname(os.getcwd())
        print(PROJECT_PATH)

        res = os.popen("pipenv --venv")
        f = open(PROJECT_PATH + "\\compat\\" + "VIRTUALENV_PATH.py", "w", encoding="utf-8")
        f.write("VIRTUALENV_PATH = '%s'" % res.read().strip().replace("\\", "\\\\"))
        f.write("PROJECT_PATH = '%s'" % res.read().strip().replace("\\", "\\\\"))



app()